<template>
	<view class="myPromotion">
		<view class="content">
			<view class="center bold mb20">
				当前已邀请X用户下载，成功获得XX天VIP
			</view>
			<!-- <view class="invite mb20">
				邀请信息
			</view>
			<view class="txt">
				20250214,15:30，游客XXXXX通过您的链接下载了APP。(由于该用户未绑定手机，暂时无法记入您的奖励)
			</view>
			<view class="txt">
				20250214,16:30，游客XXXXX已绑定手机，恭喜您成功邀请一名用户。
			</view>
			<view class="txt">
				20240214,21:00，用户9291823成功充值，恭喜您获得1元推广奖励奖励已发送至您的账户中。((如您申请成为平台游戏代理，还可获得更多丰富现金奖励，现在就去吧)“成为代理”点击此处前往
			</view> -->
			<view class="rules-box">
				<uni-table ref="table" border stripe emptyText="暂无更多数据">
					<uni-tr>
						<uni-th width="20" align="center">时间</uni-th>
						<uni-th width="40" align="center">游客</uni-th>
						<uni-th width="30" align="center">奖励</uni-th>
						<!-- 						<uni-th width="40" align="center">缓存次数</uni-th> -->
					</uni-tr>
					<uni-tr v-for="(item, index) in recommendList" :key="index">
						<uni-td align="center">{{ item.grade }}</uni-td>
						<uni-td align="center">{{ item.num }}</uni-td>
						<uni-td align="center">{{ item.time }}</uni-td>
						<uni-td align="center">{{ item.cacheTimes }}</uni-td>

					</uni-tr>
				</uni-table>
			</view>
		</view>
		<!-- <button type="primary" @click="becomeAgent">成为代理</button> -->
		<MyButton lable='成为代理' width="300rpx" shape="rightAngle" @clickBtn="becomeAgent" />
	</view>
</template>

<script>
	import MyButton from '@/components/MyButton/MyButton.vue';
	export default {
		components: {
			MyButton
		},
		data() {
			return {
				recommendList: []
			}
		},
		methods: {
			becomeAgent() {
				uni.navigateTo({
					url: '/pages/user/agent/agent'
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.myPromotion {
		padding: 20rpx;

		.content {
			background-color: #fff;
			padding: 10rpx 20px 20px;
			border-radius: 10px;
			// text-align: center;
			margin-bottom: 20px;
			color: var(--txt-color-black);
			box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

			.txt {
				color: var(--txt-color-black);
				font-size: 30rpx;
				margin-bottom: 20rpx;
			}
		}
	}
</style>